package com.ruoyi.classify.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.classify.mapper.TClassifytwoMapper;
import com.ruoyi.classify.domain.TClassifytwo;
import com.ruoyi.classify.service.ITClassifytwoService;

/**
 * 子菜单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
@Service
public class TClassifytwoServiceImpl implements ITClassifytwoService 
{
    @Autowired
    private TClassifytwoMapper tClassifytwoMapper;

    /**
     * 查询子菜单
     * 
     * @param id 子菜单主键
     * @return 子菜单
     */
    @Override
    public TClassifytwo selectTClassifytwoById(Long id)
    {
        return tClassifytwoMapper.selectTClassifytwoById(id);
    }

    /**
     * 查询子菜单列表
     * 
     * @param tClassifytwo 子菜单
     * @return 子菜单
     */
    @Override
    public List<TClassifytwo> selectTClassifytwoList(TClassifytwo tClassifytwo)
    {
        return tClassifytwoMapper.selectTClassifytwoList(tClassifytwo);
    }

    /**
     * 新增子菜单
     * 
     * @param tClassifytwo 子菜单
     * @return 结果
     */
    @Override
    public int insertTClassifytwo(TClassifytwo tClassifytwo)
    {
        return tClassifytwoMapper.insertTClassifytwo(tClassifytwo);
    }

    /**
     * 修改子菜单
     * 
     * @param tClassifytwo 子菜单
     * @return 结果
     */
    @Override
    public int updateTClassifytwo(TClassifytwo tClassifytwo)
    {
        return tClassifytwoMapper.updateTClassifytwo(tClassifytwo);
    }

    /**
     * 批量删除子菜单
     * 
     * @param ids 需要删除的子菜单主键
     * @return 结果
     */
    @Override
    public int deleteTClassifytwoByIds(Long[] ids)
    {
        return tClassifytwoMapper.deleteTClassifytwoByIds(ids);
    }

    /**
     * 删除子菜单信息
     * 
     * @param id 子菜单主键
     * @return 结果
     */
    @Override
    public int deleteTClassifytwoById(Long id)
    {
        return tClassifytwoMapper.deleteTClassifytwoById(id);
    }
}
